import Taro, { Component } from '@tarojs/taro'
import { View} from '@tarojs/components'
import styles from './index.module.less'

export default class  extends Component {

    render() {  
        const {text = 'divider', className, style, textStyle, lineStyle} = this.props
        return (
            <View className={`${styles.DividerContainer} ${className}`}  style={style}>
                <View className={styles.DividerText} style={textStyle}>
                    {text}
                </View>
                <View className={styles.DividerLine} style={lineStyle}>
                </View>
            </View>
        )
    }
}
